Title: Bar Metadata
Order: 2
TexSample: true
---

<p>
	For bars various tags can be specified which change information like
	clefs, key signatures repeats etc. They follow the format 
	<code>\tag value value</code> just like the score metadata. Be sure not to 
	mix the score metadata and the bar metadata of the first bar.
</p>       

<h2>Time Signatures</h2>

<p>
	Time signatures have the format <code>\ts Numerator Denominator</code>
</p>

<div id="alphaTabTs" data-tex="true">
\ts 3 4 | \ts 4 4 | \ts 6 8       
</div>
<script type="text/x-alphatab">
	$('#alphaTabTs').alphaTab();
</script>

<h2>Repeats</h2>

<p>
	Repeats can be started with <code>\ro</code> and 
	be closed with <code>\rc Count</code>. Count specifies how often
	the bar range is repeated. 
</p>

<div id="alphaTabRepeat" data-tex="true">
\ro 1.3 2.3 3.3 4.3 |   
5.3 6.3 7.3 8.3 |   
\rc 2 1.3 2.3 3.3 4.3 |  
\ro \rc 3 1.3 2.3 3.3 4.3 |   


</div>
<script type="text/x-alphatab">
	$('#alphaTabRepeat').alphaTab();
</script>

<h2>Key Signatures</h2>

<p>
	The key signature can be specified with <code>\ks Value</code> where the value is one 
	of the following: <code>Cb, Gb, Db, Ab, Eb, Bb, F, C, G, D, A, E, B, F#, C#</code>
</p>                       
						   
<div id="alphaTabKs" data-tex="true">
\ks Cb | \ks C | \ks C# 


</div>
<script type="text/x-alphatab">
	$('#alphaTabKs').alphaTab();
</script>

<h2>Clef</h2>

<p>
	To change the clef simply specify <code>\clef Clef</code> where Clef is one of the following
	values: <code>G2, Treble, F4, Bass, C3, Tenor, C4, Alto, N, Neutral</code>
</p>                       
						   
<div id="alphaTabClef" data-tex="true">
\clef G2 | \clef F4 | \clef C3 | \clef C4 | \clef N |
\clef Treble | \clef Bass | \clef Tenor | \clef Alto | \clef Neutral |
		
</div>
<script type="text/x-alphatab">
	$('#alphaTabClef').alphaTab();
</script>

<h2>Tempo</h2>

<p>
	To change the tempo of the score you can specify <code>\tempo BPM</code>.
	
</p>                       
						   
<div id="alphaTabTempo" data-tex="true">
// score meta also supports \tempo, therefore we skip the score meta with a dot
.
// bars
\tempo 30 1.3 2.3 3.3 4.3 | 
\tempo 80 1.3 2.3 3.3 4.3 |
</div>
<script type="text/x-alphatab">
	$('#alphaTabTempo').alphaTab();
</script>
